import tkinter as tk

window = tk.Tk()
window.title("小A君")
window.geometry("2000x2000")

canvas = tk.Canvas(window,bg="white",height=1000,width=2000)
image_file = tk.PhotoImage(file="E:\\python程序\\GUI系列\\ins.gif")

image = canvas.create_image(10,10,anchor="nw",image=image_file)
'''anchor图片定点位置上北下南
'''
x0,y0,x1,y1 = 50,50,80,80
oval = canvas.create_oval(x0,y0,x1,y1,fill="red")
arc = canvas.create_arc(x0+60,y0+60,x1+60,y1+60,start=0,extent=180)
'''start&extent表示扇形的角度'''
canvas.pack()

def moveit():
    canvas.move(oval,0,2)

b = tk.Button(window,text="move",command=moveit).pack()

window.mainloop()
'''不断循环刷新'''

